<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>uni_app中通过ref获取样式</title>
</head>

<body>

</body>
<!-- 
  let style = this.$refs.goods_select_app.$el;
  获取该dom元素下的css变量
  let display = getComputedStyle(style).getPropertyValue("--preview_display");
  设置该dom元素下css的变量值
  style.style.setProperty("--preview_display", "flex");
 -->

</html>